package ji

import (
	"log"
	"time"
)

func Logger() HandlerFunc {
	return func(ctx *Context) {
		t := time.Now()
		ctx.Next()
		log.Println("Logger:", ctx.GetStatusCode(), ctx.GetMethod(), ctx.GetPath(), "use time:", time.Since(t))
	}
}
